import 'package:framelib/net/request_manager.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:moduleone/route/module_one_route_config.dart';
import 'package:moduletwo/route/module_two_route_config.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  MyApp(){
    RequestManager.initDio(baseUrl: 'https://img.baidu.com/');
  }

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return GetMaterialApp(
      getPages:[
        ...ModuleOneRouteConfig.getPages,
        ...ModuleTwoRouteConfig.getPages
      ],
      debugShowCheckedModeBanner: false,
      // home: GetOnePage(),
    );
  }
}
